<div class="divMainContent" align="center">
<input type="hidden" id='hdtable' value="tbl_province"/>
<div id="divFormAdd1">
[onshow;block=div;when [var.sCanEdit] = 1]
<form id="frFormAdd1" name="frFormAdd1">
<input type="hidden" id='hdlat' value="0"/>
<input type="hidden" id='hdlong' value="0"/>
<table class="tblInfo" id="tblFromAdd" width="100%">
<tr >
<td  style="width:30%">Thanh Pho </td>
<td >[var.cmbCity;htmlconv=no]</td>
</tr>
<tr >
<td  style="width:30%">Ten Huyen </td>
<td ><input type="text"  id="txtAddProvince" /></td>
</tr>
<tr>
<td>Vi tri tren ban do</td>
<td>     <div id="maptracking2" style="height:300px;width:80%">

      </div></td>
</tr>
<tr>
<td class="tdButton" colspan="2" align="center">
<button class="submit" id="submit" onclick="SaveFormAdd(this.form)" type="button"> Save </button> <button class="clear" type="reset" id="clear"> Reset</button> 
</td>

</tr>
</table>
</form>
</div>

<div class="divGrid" id="divGrid">
<script type="text/javascript">
</script>

</div>

</div>

<script src='http//maps.google.com/maps?file=api&amp;v=2&amp;key=[var.gkey;]' type='text/javascript'></script>
<script language="javascript">

var _global;
 $(document).ready(function(){
    _global=new Global();
    _global.gMap=new GoogleFuncs();
    //_global.vMap=new VDBFuncs();
    _global.myMap=_global.gMap;
    _global.checkMap=0;// 1VBD truoc,0 google map
   // _global.locs=new Locations();
  // _global.gMap.se

    $('#hdDrawMarker').val(1);    
    _global.gMap.latinit = 10.7654865; 
    _global.gMap.lnginit = 108.67793273;
        _global.gMap.InitMap('maptracking2');  
        
 });

//function SaveFormAdd(oform){
//    var params = new Array();
//    var elem = oform.elements;
//    var flength = elem.length;    
//    for(i=0;i<flength;i++){    
//        if(elem[i].type !='button'&&elem[i].type !='reset'){
//            params[elem[i].id]=elem[i].value;
//        }
//    }
//    params['hdSaveStatus']=$('#hdSaveStatus').val();
//    params['hdSaveId']=$('#hdSaveId').val();
//    params['hdtable']=$('#hdtable').val();
//    xajax_SaveFormAdd(params);    
//}
function DeleteData(){
        var arID = new Array();
        var i = 0;
        $('INPUT[name=chkDelete]').each(function(){
            if($(this).attr('checked'))
            {
                arID[i] = $(this).attr('id');
                i++;
            }
        });
        var table = $('#hdtable').val();
        xajax_DeleteData(arID,table);        
}
function deletea(id){
     tmpObj = document.getElementById(id);
    tmpObj.style.display = "none";
}
var cal1 = CreateCalObject('txtFromDate', 'imgCal1');
var cal2 = CreateCalObject('txtToDate', 'imgCal2');
</script>
